import request from '@/utils/request'

// 查询排班管理列表
export function workforceList(params) {
    return request({
      url: '/client/live/user/workforce/list',
      method: 'get',
      params
    })
  }

// 列表显示排班信息
export function workforceCalendarList(params) {
  return request({
    url: '/client/live/user/workforce/calendar/list',
    method: 'get',
    params
  })
}
// 设置-批量排班信息
export function setWorkforce(data) {
  return request({
    url: '/client/live/user/workforce',
    method: 'post',
    data
  })
}
// 直播人员下拉框
export function workforceUserSelectList(params) {
    return request({
        url: '/client/live/user/workforce/user/select/list',
        method: 'get',
        params
    })
}
// 获取单个列表用户详情
export function workforceUserStatisticsDetail(params) {
  return request({
    url: '/client/live/user/workforce/user/statistics/detail',
    method: 'get',
    params
  })
}
// 排班信息详情
export function workforceDetail(params) {
  return request({
    url: '/client/live/user/workforce/detail',
    method: 'get',
    params
  })
}
// 编辑排班信息
export function editWorkforce(data) {
  return request({
    url: '/client/live/user/workforce/editWorkforce',
    method: 'put',
    data
  })
}
// 直播间下拉框
export function workforceRoomSelectList(params) {
  return request({
    url: '/client/live/user/workforce/room/select/list',
    method: 'get',
    params
  })
}
// 获取场次信息
export function workforceRoomSessionList() {
  return request({
    url: '/client/live/user/workforce/room/session/list',
    method: 'get',
  })
}
// 获取直播时长列表
export function workforceStatisticsList(params) {
  return request({
    url: '/client/live/user/workforce/statistics/list',
    method: 'get',
    params
  })
}
// 获取直播人员详情列表
export function workforceStatisticsDateList(params) {
  return request({
    url: '/client/live/user/workforce/statistics/date/list',
    method: 'get',
    params
  })
}
// 获取直播人员明细列表
export function workforceLiveDetailList(params) {
  return request({
    url: '/client/live/user/workforce/live/detail/list',
    method: 'get',
    params
  })
}

//排期日历展示
export function workforceCalendar(params) {
  return request({
    url: `/client/live/user/workforce/calendar`,
    method: 'get',
    params
  })
}

//排期日历详情
export function workforceCalendarDetail(id) {
  return request({
    url: `/client/live/user/workforce/calendar/detail/${id}`,
    method: 'get'
  })
}